package com.cdp.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cdp.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 减水剂实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("sys_water_reducer") // 指定数据库表名
public class SysWaterReducer extends BaseEntity {

    /**
     * 减水剂主键ID
     */
    @TableId(value = "reducer_id", type = IdType.AUTO)
    private Long reducerId;

    /**
     * 型号
     */
    @TableField("model")
    private String model;

    /**
     * 分子式照片路径
     */
    @TableField("molecular_formula")
    private String molecularFormula;

    /**
     * 简化分子模型照片路径
     */
    @TableField("simplified_molecular_model")
    private String simplifiedMolecularModel;

    /**
     * ID (唯一标识)
     */
    @TableField("id")
    private String id;

    /**
     * 版本号，用于乐观锁
     */
    @TableField("version")
    private Integer version;

    /**
     * 软删除时间
     */
    @TableField("delete_time")
    private Integer deleteTime;







    /**
     * 含固量%
     */
    @TableField("solid_content")
    private BigDecimal solidContent;

    /**
     * 减水率%
     */
    @TableField("reducing_rate")
    private BigDecimal reducingRate;

    /**
     * 来源
     */
    @TableField("source_name")
    private String sourceName;

    /**
     * 密度
     */
    @TableField("density")
    private BigDecimal density;

    /**
     * 水泥净浆流动度
     */
    @TableField("cement_paste_flow")
    private Integer cementPasteFlow;

    /**
     * PH值
     */
    @TableField("ph_value")
    private BigDecimal phValue;

    /**
     * 地区名称 (非数据库字段)
     */
    @TableField(exist = false)
    private String regionNameStr;
}
